import { Http } from '@/common/myAxios'
/**
 * .验证登录账号
 * @param {*} oParams
 */
export const cityjson = (oParams = {}) => {
  return Http(
    'http://pv.sohu.com/cityjson?ie=utf-8', {callback: 'returnCitySN'}
  ).then((loginResult) => {
    console.log('callbackParamName=================', loginResult)
  }).catch((result) => {
    console.log('catch result============>', result)
  })
}
export const geocoder = (oParams = {}) => {
  let url = `https://api.map.baidu.com/geocoder/v2/?coordtype=gcj02ll&location=27.342,36.45656&output=json&ak=pAMAjB2c3i9Ptj1MsuuDIU57GYKyPkcQ`
  return Http(url, oParams, { method: 'get' }).then(loginResult => {
    return loginResult
  })
}
